const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const PostCollectionSchema = new Schema({
  collectionId: { type: String, required: true, unique: true },
  postId: { type: String, required: true },
  userId: { type: String, required: true },
  createTime: { type: Date, default: Date.now }
});

module.exports = mongoose.model('PostCollection', PostCollectionSchema);